import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { store, key } from './store';
import { directive } from '/@/utils/directive';
import { globalComponentSize } from '/@/utils/componentSize';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '/@/theme/index.scss';
import '/@/theme/font/font_2298093_y6u00apwst.css';
import mitt from 'mitt';
import screenShort from 'vue-web-screen-shot';
import VueGridLayout from 'vue-grid-layout';

import load from '/@/utils/businessloading';
import locale from 'element-plus/lib/locale/lang/zh-cn';
const app = createApp(App);
app
	.use(router)
	.use(store, key)
	.use(ElementPlus, { locale, size: globalComponentSize })
	.use(screenShort, { enableWebRtc: false })
	.use(VueGridLayout)
	.use(load)
	.mount('#app');

app.config.globalProperties.mittBus = mitt();

directive(app);
